package com.zxcl.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@RefreshScope
@Component
public class WxAuthConfig {

    @Value("${wx.auth.appid}")
    private String appId;

    @Value("${wx.auth.appsecret}")
    private String appSecret;

    @Value("${wx.auth.url}")
    private String url;
}
